const bcrypt = require('bcryptjs');
const tools = {
    encrypt(password) {
        var salt = bcrypt.genSaltSync(10);
        var hash = bcrypt.hashSync(password, salt);
        return hash;
    }
}
module.exports = tools
